#include "CTile.h"
#include "CTileManager.h"
#include "CGame.h"

CTile::CTile(int nTopX, int nTopY)
{
	m_fTopX = (float)nTopX; 
	m_fTopY = (float)nTopY;
}

CTile::~CTile()
{

}

void CTile::Init()
{

}

void CTile::Shutdown()
{

}

void CTile::Render()
{
	
}

RECT CTile::DrawRect()
{
	m_rectDraw.left = (LONG)m_fTopX - CGame::GetInstance()->RectCamera().left;
	m_rectDraw.top = (LONG)m_fTopY - CGame::GetInstance()->RectCamera().top;
	m_rectDraw.right = m_rectDraw.left + CTileManager::GetInstance()->TileWidth();
	m_rectDraw.bottom = m_rectDraw.top + CTileManager::GetInstance()->TileHeight();

	return m_rectDraw;
}